﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Woobao.BO;

namespace Woobao.Servico
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "CampeonatoService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select CampeonatoService.svc or CampeonatoService.svc.cs at the Solution Explorer and start debugging.
    public class CampeonatoService : ICampeonatoService
    {
        BOCampeonato business;
        BOCampeonato bo
        {
            get
            {
                if (business == null)
                {
                    business = new BOCampeonato();
                }
                return business;
            }
        }

        public void Inserir(VO.VOCampeonato obj)
        {
            bo.Inserir(obj);
        }

        public List<VO.VOCampeonato> Consultar(VO.VOCampeonato filtro)
        {
            return bo.Consultar(filtro);
        }

        public void Atualizar(VO.VOCampeonato obj)
        {
            bo.Atualizar(obj);
        }

        public void Excluir(int codigo)
        {
            bo.Excluir(codigo);
        }


        public VO.VOCampeonato GerarTabela(int codigoCampeonato)
        {
            return bo.GerarTabela(codigoCampeonato);
        }
    }
}
